﻿using rk310.DAL;
using rk310.MODEL;

namespace rk310.BLL
{
    public class Roombll
    {
        public Roombll(Roomdal roomdal)
        {
            Roomdal = roomdal;
        }

        public Roomdal Roomdal { get; }


        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="room"></param>
        /// <returns></returns>
        public int AddRoom(Room room)
        {
            try
            {
                return Roomdal.AddRoom(room);
            }
            catch (Exception)
            {

                throw;
            }

        }



        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        public dynamic GetRoom()
        {
            try
            {
                return Roomdal.GetRoom();
            }
            catch (Exception)
            {

                throw;
            }

        }
    }
}